package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2022-10-15
 */
@Data
@TableName("students")
@EqualsAndHashCode(of = {"age"})
@ApiModel(value="Students对象", description="")
public class Students implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "StuID", type = IdType.AUTO)
    private Integer stuId;

    @ApiModelProperty("名字")
    private String name;

    private Integer age;

    private String gender;

    private Integer classId;

    private Integer teacherId;


}
